/**
 * Copyright &copy; 2012-2016 <a href="https://github.com/thinkgem/jeesite">JeeSite</a> All rights reserved.
 */
package com.thinkgem.jeesite.modules.gra.entity;

import org.hibernate.validator.constraints.Length;
import com.thinkgem.jeesite.modules.sys.entity.User;

import com.thinkgem.jeesite.common.persistence.DataEntity;

/**
 * 试卷管理Entity
 * @author wuzengli
 * @version 2017-05-04
 */
public class Score extends DataEntity<Score> {
	
	private static final long serialVersionUID = 1L;
	private User user;		// 所属用户
	private String paperId;		// 考卷ID 父类
	private Integer score;		// 分数
	private Integer moreScore;		// 多选分数
	private Integer singleScore;		// 单选分数
	private String sort;		// 排序
	private String status;		// 启用状态 0:不可用 1:可用
	private String paperName;
	
	public Score() {
		super();
	}

	public Score(String id){
		super(id);
	}
	
	public User getUser() {
		return user;
	}

	public void setUser(User user) {
		this.user = user;
	}
	
	@Length(min=0, max=50, message="考卷ID长度必须介于 0 和 50 之间")
	public String getPaperId() {
		return paperId;
	}

	public void setPaperId(String paperId) {
		this.paperId = paperId;
	}
	
	public Integer getScore() {
		return score;
	}

	public void setScore(Integer score) {
		this.score = score;
	}
	
	public Integer getMoreScore() {
		return moreScore;
	}

	public void setMoreScore(Integer moreScore) {
		this.moreScore = moreScore;
	}
	
	public Integer getSingleScore() {
		return singleScore;
	}

	public void setSingleScore(Integer singleScore2) {
		this.singleScore = singleScore2;
	}
	
	@Length(min=0, max=11, message="排序长度必须介于 0 和 11 之间")
	public String getSort() {
		return sort;
	}

	public void setSort(String sort) {
		this.sort = sort;
	}
	
	@Length(min=0, max=11, message="启用状态 0:不可用 1:可用长度必须介于 0 和 11 之间")
	public String getStatus() {
		return status;
	}

	public void setStatus(String status) {
		this.status = status;
	}

	public String getPaperName() {
		return paperName;
	}

	public void setPaperName(String paperName) {
		this.paperName = paperName;
	}
	
}